checkFlagsArgument
Check the requested flags, throwing if any requested flags are outside the allowed set.
Return
the validated requested flags.
Check the requested flags, throwing if any requested flags are outside the allowed set.
the validated requested flags.